import Vue from 'vue'
import Vuex from 'vuex'
//引入左侧菜单子树
import app from './modules/app';
import user from "@/store/modules/user";
import lang from './modules/lang';

import getters from './getters';
//引入持久化插件
import createPersistedState from 'vuex-persistedstate';
Vue.use(Vuex)

export default new Vuex.Store({
  plugins:[createPersistedState()],
  state: {
  },
  mutations: {
  },
  actions: {
  },
  getters,
  modules: {//在modules 添加子树
    app,user,lang
  }
})
